Serial.LastErrorCode Property

Syntax

LastErrorCode as Integer


Contains the last known error in the Serial control. Some of these values are currently OS errors.

REALbasic error class constants are as follows:

100 - AccessDenied

101 - PortNotFound

102 - InvalidOptions

Available on Windows and Mac OS X.